package com.inter.law;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.inter.law.dao.IlTaskDAO;
import com.inter.law.entity.IlTask;
import com.opensymphony.xwork2.ActionSupport;

public class MissionAction extends ActionSupport{
	private Integer statuss;
	private Integer ids;

	private ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");

	
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		System.out.println("the value of  Id    :");
		System.out.println("the value of  status    :"+statuss);
		IlTaskDAO ilTaskDAO = IlTaskDAO.getFromApplicationContext(ac);
		IlTask ilTask = new IlTask();
		ilTask = ilTaskDAO.findById(ids);
		ilTask.setStatus(statuss);
		ilTaskDAO.attachDirty(ilTask);
		System.out.println("任务修改成功");
		return SUCCESS;
	}
	
	public Integer getStatuss() {
		return statuss;
	}

	public void setStatuss(Integer statuss) {
		this.statuss = statuss;
	}

	public Integer getIds() {
		return ids;
	}
	public void setIds(Integer ids) {
		this.ids = ids;
	}
	


	
}
